home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 September
/
PCWorld_2002-09_cd.bin
/
Akce
/
Quartet
/
Main
/
MAIN.SWF
/
scripts
/
DefineButton2_118
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2002-08-07
|
1KB
|
38 lines
on(release){
compl = 0;
if(focus_is_on != size)
{
j = 1;
while(j <= size)
{
if(compl == 1)
{
break;
}
if(eval("text" + chr(96 + j) + "_index") == focus_is_on && eval("text" + chr(96 + j) + "_index") != size)
{
k = 1;
while(k <= Number(size))
{
if(eval("text" + chr(96 + k) + "_index") == focus_is_on + 1)
{
ypos1 = getProperty("text" + j, _Y);
ypos2 = getProperty("text" + k, _Y);
eval("text" + k)._y = ypos1;
eval("text" + j)._y = ypos2;
set("text" + chr(96 + j) + "_index",focus_is_on + 1);
set("text" + chr(96 + k) + "_index",focus_is_on);
eval("foc" + focus_is_on)._visible = 0;
compl = 1;
break;
}
k++;
}
}
j++;
}
focus_is_on += 1;
eval("foc" + focus_is_on)._visible = 1;
}
}